home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / musictex / older-versions / musictex.507 / SLURUU16.MF < prev    next >
Text File  |  1991-11-07  |  1KB  |  41 lines

  1. % Change of length into longueur for new modes.mf (Nicolas Brouard 4/11/91)
  2. input musicdef
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. %                                                             %
  5. %                   BOGEN (KONVEX)                            %
  6. %                                                             %
  7. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  8.  
  9. def drawslurs(expr i,j) =
  10.     save  jj,factor, longueur, height;
  11.     numeric jj, absp, longueur, height, factor;
  12.     factor:= 1/6;
  13.     height = i*1/2nhh#;
  14.     longueur = j*nhw#;
  15.     if  j<4 : jj := (j*(j-1)+(i-1))*8
  16.     else:    jj := (i-1)*8+(j mod 2)*64+floor((j-2)/2);fi;
  17.     beginchar(jj, longueur, height, 0);
  18.       clear;
  19.       z2r = (w,h);
  20.       z1l = origin;
  21.       absp := abs((-h,w));
  22.       if (factor*absp)>2nhh : factor:= 2nhh/absp fi;
  23.       z3r = 1/2z2l+factor*(-h,w);
  24.       penpos1(thinwidth,90);
  25.       penpos2(thinwidth,90);
  26.       penpos3(5/12beamht,90);
  27.       currentpen := pencircle xscaled thinwidth yscaled beamht ;
  28.       penstroke z1e..z3e..z2e; %statt dir 30
  29.     endchar;
  30. enddef;
  31.  
  32. %%%%%%%%%%%%%%%%%%%%%%%
  33. % positive Steigungen %
  34. %%%%%%%%%%%%%%%%%%%%%%%
  35.  
  36. for j= 1 upto 17:
  37. for i= 1 upto min(2j,8):
  38. drawslurs(i,j);
  39. endfor;endfor;
  40. end;
  41.